

'''
元组,不可变序列
'''
my_tuple = (1,2,3,6,10,'test')

# my1_tuple =(1,)#元组中如果一个值,必须有逗号,不然会以为是数值

#查
print(my_tuple[0])

for e in my_tuple:
    print(e)
print(len(my_tuple))
print(my_tuple.index(3))
#增
my_tuple+=(1,2,3)
print(my_tuple)
#删 不可
#改 不可
print(list(my_tuple))
my_tuple[0] = 100
